import { http } from '@/http/http'
import {
  IGetConsultOrderListRequest,
  IGetConsultOrderListResponse,
  IAddConsultOrderRequest,
  IAddConsultOrderResponse
} from './types/inquiry'

/**
 * 获取问诊订单列表
 * @param params 查询参数
 */
export function getConsultOrderList(params: IGetConsultOrderListRequest) {
  return http.get<IGetConsultOrderListResponse>('/patient/consult/order/list', params)
}
/**
 * 添加问诊订单
 * @param data 订单数据
 */
export function addConsultOrder(data: IAddConsultOrderRequest) {
  return http.post<IAddConsultOrderResponse>('/patient/add', data)
}
/**
 * 删除问诊订单
 * @param id 订单ID
 */
export function deleteConsultOrder(id: string) {
  return http.post('/patient/consult/order/delete', {
    id
  })
}